package com.pool.store.gdata;

import java.util.Map;

import com.pool.common.Shoot;

/**
 * @author claveld@gmail.com (David Clavel)
 */
public class ShootGDataFactory implements GDataFactory<Shoot> {

  public Shoot createFrom(Map<String, String> values) {
    String id = values.get("ID");
    String description = values.get("Description");
    int points = Integer.parseInt(values.get("Points"));
    return new Shoot(id, description, points);
  }
}
